package com.vhall.component.entity.room;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * @author dongsong
 */
@Data
@TableName("room_likes")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "RoomLikesEntity对象", description = "room_likes表")
public class RoomLikesEntity implements Serializable {


    private static final long serialVersionUID = -7370501641178285960L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "房间id")
    @TableField("room_id")
    private String roomId;

    @ApiModelProperty(value = "用户id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "点赞数")
    @TableField("like_count")
    private Long likeCount;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @TableField("deleted_at")
    private LocalDateTime deletedAt;
}
